package com.xyht.sca_s.student_manage_system.modules.asset.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 固定资产库存
 * </p>
 *
 * @author XYHT
 * @since 2023-05-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sms_asset_fixed_storage")
@ApiModel(value = "SmsAssetFixedStorage对象", description = "固定资产库存")
public class SmsAssetFixedStorage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "资产id")
    private String id;

    @ApiModelProperty(value = "资产名称")
    private String assetName;

    @ApiModelProperty(value = "资产类别")
    private String assetCategory;

    //：1：库中   2：借出  3：维修   4：报废  5:出库
    @ApiModelProperty(value = "资产状态")
    private Integer assetStatus;

    @ApiModelProperty(value = "资产二级状态")
    private Integer assetDetailStatus;

    @ApiModelProperty(value = "资产品牌")
    private String assetBrand;

    @ApiModelProperty(value = "资产型号")
    private String assetModel;

    @ApiModelProperty(value = "资产数量")
    private Integer assetNum;

    @ApiModelProperty(value = "资产单价")
    private BigDecimal assetPrice;

    @ApiModelProperty(value = "数据添加用户id")
    private String addUserId;

    @ApiModelProperty(value = "维保时长  单位/月")
    private Integer assetMaintenanceDuration;

    @ApiModelProperty(value = "维保过期时间")
    private Date assetMaintenanceExpire;

    @ApiModelProperty(value = "资产计量单位")
    private String assetUnit;

    @ApiModelProperty(value = "资产位置")
    private String assetPlace;

    @ApiModelProperty(value = "资产所有者")
    private String assetOwner;

    @ApiModelProperty(value = "资产所属部门")
    private String assetDepartment;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "资产入库时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableLogic
    private Integer isDeleted;

    private BigDecimal totalPrice;

    @ApiModelProperty(value = "资产残值")
    private BigDecimal assetResidualPrice;

    @ApiModelProperty(value = "账面价值")
    private BigDecimal assetRealPrice;

    @ApiModelProperty(value = "资产累计折旧价值")
    private BigDecimal assetTotalDepreciationPrice;

    @ApiModelProperty(value = "资产每月折旧价值")
    private BigDecimal assetPerDepreciationPrice;

    @ApiModelProperty(value = "资产最后一个月折旧价值")
    private BigDecimal assetLastMonthDepreciationPrice;

    @ApiModelProperty(value = "资产寿命  单位（月）")
    private Integer assetLifetime;

    @ApiModelProperty(value = "已购置月份数")
    private Integer assetBuyMonth;

    @ApiModelProperty(value = "月折旧率")
    private BigDecimal assetDepreciationRate;

    @ApiModelProperty(value = "最后一个月折旧率")
    private BigDecimal assetLastMonthDepreciationRate;

    @ApiModelProperty(value = "残值率")
    private BigDecimal assetResidualRate;



}
